# Contributor: omni <omni+alpine@hack.org>
# Maintainer: omni <omni+alpine@hack.org>
pkgname=judo
pkgver=0.5
pkgrel=0
pkgdesc="Simple orchestration & configuration management"
url="https://github.com/rollcat/judo"
license="MIT"
arch="all"
makedepends="go"
source="$pkgname-$pkgver.tar.gz::https://github.com/rollcat/judo/archive/refs/tags/$pkgver.tar.gz"

export GOPATH="$srcdir"
export GOFLAGS="$GOFLAGS -trimpath -mod=readonly -modcacherw"

build() {
	go build -v .
}

check() {
	go test -v ./...
}

package() {
	install -Dm0755 "$pkgname" -t "$pkgdir"/usr/bin
}

sha512sums="
d984535d38d480c988b469b319e77692b7815be7cbfe649f69cba4c66fc979e157c32c98f06f16d7c1e0a9d532ce6d082981de454eec90f77f254328e73bde27  judo-0.5.tar.gz
"
